import request from '@/utils/request'

// 查询家系样本源 详细
export function getFamilySource(familySourceId) {
  return request({
    url: '/biobank/familySource/' + familySourceId,
    method: 'get'
  })
}

// 新增家系样本源
export function addFamilySource(data) {
  return request({
    url: '/biobank/familySource',
    method: 'post',
    data: data
  })
}

// 新增家系关联样本源
export function addRelateSource(data) {
  return request({
    url: '/biobank/familySource/addRelate',
    method: 'post',
    data: data
  })
}

// 删除家系关联样本源
export function delRelateSource(data) {
  return request({
    url: '/biobank/familySource/delRelate',
    method: 'post',
    data: data
  })
}

// 修改家系样本源
export function updateFamilySource(data) {
  return request({
    url: '/biobank/familySource',
    method: 'put',
    data: data
  })
}

// 删除家系样本源
export function delFamilySource(familySourceId) {
  return request({
    url: '/biobank/familySource/' + familySourceId,
    method: 'delete'
  })
}
